<html>
<head></head>
<body>

<?php

    //database properties
    $dbhost = 'localhost:3036';
    $dbuser = 'root';
    $dbpass = 'halogram';
    $conn = mysql_connect($dbhost, $dbuser, $dbpass);//returns MySQL link identifier on success or FALSE on failure.

    //checks if connection is successful
    if(! $conn )
        die('Could not connect: ' . mysql_error());

    echo 'Connected successfully';

    //create
    $sql_insert = "INSERT INTO wechatdata".
                  "(id,xml_in,date_in,get_params)".
                  "VALUES ".
                  "('','THIS SHOULD GO IN BODY','','')";

    mysql_select_db( 'test' );//returns TRUE on success or FALSE on failure.

    $retval = mysql_query( $sql_insert, $conn );
    if(! $retval )
    {
        die('Could n    ot enter data: ' . mysql_error());
    }
    echo "Entered data successfully\n";
    mysql_close($conn);
    ?>
</body>
</html>